package com.water.controller;

import com.water.entity.PyBalancedetail;
import com.water.service.PyBalancedetailService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * (PyBalancedetail)表控制层
 *
 * @author makejava
 * @since 2020-12-22 18:39:15
 */
@RestController
@RequestMapping("pyBalancedetail")
public class PyBalancedetailController {
    /**
     * 服务对象
     */
    @Resource
    private PyBalancedetailService pyBalancedetailService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PyBalancedetail selectOne(Integer id) {
        return this.pyBalancedetailService.queryById(id);
    }

}